import os

SECRET_KEY = '<your secret key>'


# 数据库的配置信息
HOSTNAME = '127.0.0.1'
PORT = '3306'
DATABASE = '<database name>'
USERNAME = '<username>'
PASSWORD = '<password>'
DB_URI = 'mysql+pymysql://{}:{}@{}:{}/{}?charset=utf8'.format(USERNAME, PASSWORD, HOSTNAME, PORT, DATABASE)
SQLALCHEMY_DATABASE_URI = DB_URI


# 配置邮箱
MAIL_SERVER = 'smtp.163.com'
MAIL_USE_SSL = True
MAIL_USERNAME = 'you@example.com'
MAIL_PASSWORD = '<your password>'
MAIL_PORT = 465
MAIL_DEFAULT_SENDER = 'you@example.com'